package com.vast.ui.component.models;

public class Io {
	public int line;
	public int value;
	public boolean state[];
	public Io(int numberOfIo, int line) {
		this.state = new boolean[numberOfIo];
		this.line = line;
	}

	public void enabled(int index) {
		this.state[index] = true;;
	}
	
	public void disabled(int index) {
		this.state[index] = false;
	}
	
	public void setChecked(int index, boolean value) {
		this.state[index] = value;
	}
	
	public boolean isChecked(int index) {
		return this.state[index];
	}
	
	public int getLine() {
		return line;
	}
}
